package io.virtualapp.hook_sdk.firewall;

import android.os.Parcel;
import android.os.Parcelable;
/**
 *
 * */
public class AppNetInfo implements Parcelable {

    public String ipStr;
    public String addressStr;
    public String wildcardStr;

    public AppNetInfo(String ipStr,String addressStr,String wildcardStr) {
        this.ipStr = ipStr;
        this.addressStr = addressStr;
        this.wildcardStr = wildcardStr;
    }

    public AppNetInfo(Parcel in) {
        ipStr = in.readString();
        addressStr = in.readString();
        wildcardStr = in.readString();
    }


    public static final Creator<AppNetInfo> CREATOR = new Creator<AppNetInfo>() {
        @Override
        public AppNetInfo createFromParcel(Parcel in) {
            return new AppNetInfo(in);
        }

        @Override
        public AppNetInfo[] newArray(int size) {
            return new AppNetInfo[size];
        }
    };

    @Override
    public String toString() {
        return "AppNetInfo{" +
                "ipStr='" + ipStr + '\'' +
                ", addressStr='" + addressStr + '\'' +
                ", wildcardStr='" + wildcardStr + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ipStr);
        dest.writeString(addressStr);
        dest.writeString(wildcardStr);
    }
}
